<?php
include 'global.php';
include 'userEdit.php';
include 'sub/header.php';
?>
<form method="post"  action="<?php echo $_SERVER['REQUEST_URI']; ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="bttitle"><a href="userList">Danh sách user</a> <a href="userAdd">Thêm user</a></td>
    <td align="right" class="rcolum"><img src="../img/Search-icon.png"/>
      <input type="text" name="textfield3" id="textfield3" /></td>
  </tr>
  <tr>
    <td colspan="2"><br />
      <table width="100%" border="0" cellspacing="0" cellpadding="4" class="productTb">
        <tr>
          <td align="right">Họ tên</td>
          <td><input type="text" name="txtFullName" id="textfield" style="width: 200px" value="<?php echo $rows['us_fullname']?>"/></td>
        </tr>
        <tr>
          <td align="right">User name</td>
          <td><input type="text" name="txtUserName" id="textfield2" style="width: 200px" value="<?php echo $rows['us_username']?>"/></td>
        </tr>
        <tr>
          <td align="right">Email</td>
          <td><input type="text" name="txtEmail" id="textfield2" style="width: 200px" value="<?php echo $rows['us_email']?>"/></td>
        </tr>
        <tr>
          <td align="right">Trạng thái</td>
          <td><input type="checkbox" <?php if (isset($rows['us_enable']) && '1' === $rows['us_enable']) echo ' checked="checked"'?> name="status" value="1" /></td>
        </tr>
        <tr>
          <td align="right">Password</td>
          <td><a href="changePass?id=<?php echo $rows['useradminid']?>">Đổi pass</a></td>
        </tr>
        <tr>
          <td align="right">&nbsp;</td>
          <td><input type="submit" name="button" id="button" value="Cập nhật" /></td>
        </tr>
    </table></td>
  </tr>
</table>
</form>
<?php
include 'sub/footer.php';
?>